#ifndef _GPIO_H_
#define _GPIO_H_

//base addr
//#define RioUartBase 0x83c10000
//#define SWBACK_BOARD_MAX_COUNT 500
#define GPIO_CFG_ADDR  0x41200000
#define GPIO_DONE_ADDR 0x41210000

#define GPIO_RESET_ADDR 0x41220000
#define XGPIO_DATA_OFFSET 0x0
#define XGPIO_TRI_OFFSET 0x4

#define GPIO_GA_ADDR 0x41240000
#define GPIO_CHASIS_ADDR 0x41250000
#define GPIO_SRIO_LINK_ADDR 0x41230000


void SetGpioReg(unsigned int addrBase,unsigned int addrOffset,unsigned int value);
int GetGpioReg(unsigned int addrBase,unsigned int addrOffset);

#endif /* UART_H_ */
